import VueRouter from "vue-router";
import Login from "../components/Login";
import Welcome from "../components/Welcome";
import HrInfo from "../components/hr/HrInfo";
import SysHr from "../components/sys/SysHr";
import EmpBasic from "../components/emp/EmpBasic";
import StaScore from "../components/sta/StaScore";
import SalSob from "../components/sal/SalSob";
import SalSobCfg from "../components/sal/SalSobCfg";

const router = new VueRouter({
    routes: [
        {
            path: '/',
            name: 'Login',
            component: Login
        },
        {
            path: '/welcome',
            name: 'Welcome',
            component: Welcome,
            children: [
                {
                    path: '/hrinfo',
                    name: '个人中心',
                    component: HrInfo
                },
                {
                    path: '/sys/hr',
                    name: '操作员管理',
                    component: SysHr
                },
                {
                    path: '/emp/basic',
                    name: '基本资料',
                    component: EmpBasic
                },
                {
                    path: '/sta/score',
                    name: '员工积分统计',
                    component: StaScore
                },
                {
                    path: '/sal/sob',
                    name: '工资账套管理',
                    component: SalSob
                },
                {
                    path: '/sal/sobcfg',
                    name: '员工账套设置',
                    component: SalSobCfg
                }
            ]
        }
    ]
})

export default router